package com.example.chenzixin.adapter;


import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.read.R;

import java.util.Map;

public class ChengyuAdapter extends BaseQuickAdapter<Map<String, String>, BaseViewHolder> {
    public ChengyuAdapter() {
        super(R.layout.item_chengyu);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, Map<String, String> item) {
        if (item != null) {
            baseViewHolder.setText(R.id.tv_chengyu, item.get("name"));
        }
    }
}
